package org.global.configure;

import org.global.utils.ProBeanUtils;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.domain.AuditorAware;
import org.springframework.data.jpa.repository.config.EnableJpaAuditing;

import java.util.Optional;

@Configuration
@EnableJpaAuditing
public class JpaConfigure {
    @Bean
    public AuditorAware<String> auditorAware() {
        return () -> Optional.of("test");
    }

    @Bean
    public ProBeanUtils proBeanUtils() {
        return new ProBeanUtils();
    }
}
